Jump into a Python Interactive Session mid-program?

后端 未结 5 1294
陌清茗
陌清茗 2020-12-23 15:35

Hey I was wondering... I am using the pydev with eclipse and I\'m really enjoying the powerful debugging features, but I was wondering:

Is it possible to set

5条回答
  •  没有蜡笔的小新
    2020-12-23 16:06

    You can jump into an interactive session using code.InteractiveConsole as described here; however I don't know how to trigger this from Eclipse.

    A solution might be to intercept Ctrl+C to jump into this interactive console (using the signal module: signal.signal(signal.SIGINT, my_handler)), but it would probably change the execution context and you probably don't want this.

提交回复
热议问题