DonJayamanne / javaVSCode

Extension for java development on VSCode (deprecated)
https://marketplace.visualstudio.com/items?itemName=donjayamanne.javaDebugger
MIT License
43 stars 29 forks source link

Failed to launch if the java process doesn't print the "Listening for transport..." message #57

Open dueckminor opened 7 years ago

dueckminor commented 7 years ago

I sometime have to use a special JVM which doesn't print the "Listening for transport dt_socket at address: ..." message.

This makes it impossible to "launch" a java process, while "attach" works without problems. (jdb.ts waits for this message before it sends the run command to the suspended java process)

Do you think it makes sense to add a configuration parameters which allows to "launch" java processes with such an JVM?

If yes, I could implement it and create a pull request for it.

faustinoaq commented 7 years ago

Do you mean this line https://github.com/DonJayamanne/javaVSCode/blob/master/src/client/jdb.ts#L263?

If such changes don't affect current behavior for common JVM then I think could exist a configuration like listenerMessage or something.

dueckminor commented 7 years ago

Yes, I mean this line. The problem is that my special JVM just outputs nothing. A solution would be:

faustinoaq commented 7 years ago

I think your solution would be good.

BTW, Can I know what JVM are you using? :sweat_smile:

dueckminor commented 7 years ago

Hi Faustino,

I'm using the SAPJVM. Give me some time to create the required fix. I'm currently on vacation and try to touch my notebook as less as possible ;-)