-
Notifications
You must be signed in to change notification settings - Fork 35
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
jdb empty screen, how to debug with jdb #91
Comments
Try running :call vebugger#jdb#start('Application', { 'classpath': './target', 'srcpath': './src' }) | VBGtoggleTerminalBuffer What gets written there? Any errors? |
Yea I'm seeing following error, stop on Application.main
VM Started: Error: Could not find or load main class Application It looks like it cannot find main class. I've the Application class inside ./target/classes/com/foo/boo/Application and srcpath is ./src. How should I set those variables? By the way having a single java file, compiling it and starting vebugger works. I still haven't figured out how to evaluate variables to see their values but it actually stops at the break point correctly which is great. |
|
Thanks @idanarye - I still get the error stop on com.foo.boo.Application.main
VM Started: Error: Could not find or load main class com.foo.boo.Application |
Is |
It is definitely there, but what I don't know is if there's any Spring boot glue code involved that makes it look like it's not got main method. Thanks for your help. |
I have the same issue when
In the vebugger's terminal, there's no error message reported but the buffer with the code gets emptied and I see a warning, that the Class is not on the classpath: I'm going to dig a little further later today... |
I tried to run the vim-vebugger and launch it on a spring maven project and I got some errors, at first I was getting the error that @opensourcegeek was getting:
After doing what @idanarye suggested the first error disappeared and I got another error:
It's crashing on this line:
Could it be crashing because of not finding classpath for SpringApplication? |
Note: I have this in my .bashrc to use lombok:
|
I'm trying to run vebugger for java but I'm seeing an empty window whenever I kick off jdb. It seems to not start the app and it just shows empty window for a while. I'm running a spring boot app, it's a maven project and following is the command I'm using
:call vebugger#jdb#start('Application', { 'classpath': './target', 'srcpath': './src' })
I've tried several variations of it by giving absolute path for classpath and srcpath variables etc. Nothing seems to make any difference. Any pointers would be greatly helpful, as my vim setup is really good at the moment missing just the debugging experience even for writing Java code. Thanks.
The text was updated successfully, but these errors were encountered: