badetitou / Pharo-LanguageServer

A Language Server Protocol implementation in Pharo
GNU General Public License v3.0
30 stars 6 forks source link

Headless support for DAP debugger #5

Closed jmari closed 2 years ago

jmari commented 2 years ago

I've been able to run DAP debugger in headless mode. CommandLineDAPUIManager should be selected as default UIManager doing CommandLineDAPUIManager new beDefault. In iPharo (jupyter kernel) I execute it on my CommandLineHandler. I start the iPharo Kernel by a command line parameter, so when I start pharo I check first if it is in headless mode by sending #isValidForCurrentSystemConfiguration.

CommandLineDapUIManager isValidForCurrentSystemConfiguration ifTrue:[ CommandLineDapUIManager new beDefault. ]. I hope It'll help you to run it in headless mode.


Also need to remove the stepOver on halt (I put that there...) It doesn't work if it makes the stepOver on halt...don't know why exactly...

badetitou commented 2 years ago

(I do not have forgot this)