provegard / ncdbg

A debugger for Nashorn that uses Chrome DevTools as frontend
BSD 3-Clause "New" or "Revised" License
31 stars 5 forks source link

Keep Application Running #96

Closed augustocdias closed 6 years ago

augustocdias commented 6 years ago

It would be nice to have the application running through multiple debug sessions, so we don't have to start it everytime we want to debug an app. Having the app running as a service would improve the overall debugging experience.

provegard commented 6 years ago

I got the suggestion elsewhere to let NCDbg connect first when DevTools connects. That requires a separation of lifecycles anyway and I think it would align with what you suggest. Do you agree?

provegard commented 6 years ago

I have pushed something that I think addresses this issue. If you start NCDbg with the --lazy option, it won't connect until you connect with DevTools, and it will stay alive if the debug target dies.

I haven't made a release with this functionality yet, but you can try it directly from the repo. Let me know if it works for you!

augustocdias commented 6 years ago

Worked like a charm. Thank you very much