-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JBang - run in JVM debug mode so you can do JVM remote debugging #116
Comments
I think this feature outside Karavan for now. |
The Camel route debugger for yaml dsl is now available: Given that with latest version, JMX is supported, this other video can be interesting https://www.youtube.com/watch?v=YSr-FccRgms&list=PLU-T8l-XOWOPjrXPojx2WDSegigcNzKs4&index=2&t=37s That said, the Camel route debugger for yaml dsl is a different kind of debugging than the JVM debug. The JVM debug is also possible to attach to a running process |
documentation for jbang in debug mode https://www.jbang.dev/documentation/guide/latest/debugging.html |
|
Yesterday I tried the vscode camel debugger and with a bit of configuring those config files then made it work. I could debug camel jbang for yaml files. I think in .java then vscode would set the breakpoint as a java breakpoint so that was not possible. Also I added camel-debug always so its included |
Unless I misunderstood the use case, it is working (cannot combine the task and the launch config, shoudl require extra configuration):
camel-jbang cannot be used in production? |
managed to have teh single-click working. .vscode/tasks.json:
.vscode/launch.json:
|
Will be implemented as a part of #151 |
Java debugging and Camel debugging are 2 different things. Both functionnaly and technically behind the scenes. I think both issues should stay opened as they can be handled completely independently |
We should find out if we can launch jbang in JVM debug mode (there are some JVM flags you need to turn on, to make it debug mode on port 5005, and suspend=y etc.
And if so we should find out if we can make VSCode detect this and be able to debug the Camel code. Not sure how easy it is for it to know which JARs to have on its project and so on.
But its also a more general problem with jbang, so we can talk to Max about this.
The text was updated successfully, but these errors were encountered: