@PeterJones
Okay, I got it working, but I need to revise the configuration section of NppDebugger.
Debugging PythonScript is fundamentally different from debugging “regular” Python programs.
Currently, however, NppDebugger selects the debugger based on the language, which no longer works in this case.
So I guess I need to introduce a “profile-like” approach, i.e., a language can have multiple debug adapters.
If multiple adapters are defined, we could display a small dialog to select the desired adapter.
Additionally, the debuggee process is currently terminated when the session ends, which is usually not a problem, but when debugging PythonScript, Npp itself is the debuggee process, and terminating it could leave plugins in an unexpected state, such as in my case, where NppLspClient can no longer perform its cleanup.
So I need an additional option to configure
the debuggee process so that it is not terminated after the debugging session ends.
I hope another version will be available by the end of this week.
[image: 1780303579725-nppdebugger_in_action.gif]