Skip to content
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

Running test in debug mode won't make IDE attach to debugger #2052

Closed
floreal opened this issue May 23, 2019 · 7 comments
Closed

Running test in debug mode won't make IDE attach to debugger #2052

floreal opened this issue May 23, 2019 · 7 comments

Comments

@floreal
Copy link

floreal commented May 23, 2019

How to reproduce

  1. I wrote a few tests scripts (using Test::Class)
  2. Running them in normal mode works fine

Result

Running them in debug mode get stucks with this output:

Listening for the IDE connection at 0.0.0.0:38673...
Waiting for process to start...
Waiting for process to start...
Waiting for process to start...
(...)
Disconnected

If i run one of them as a script with debug mode, The IDE is able to connect to debugger.

I tried this with single job test and several jobs test, the result is the same.

@floreal floreal changed the title Running test in debug mode won't attach Running test in debug mode won't make IDE attach to debugger May 23, 2019
@floreal
Copy link
Author

floreal commented May 24, 2019

I believe the perl argument -d:Camelcadedb is not provided by the command line that are running test as debug:

/home/floreal/.plenv/bin/plenv exec perl5.18.2 /home/floreal/.plenv/versions/5.18.2/bin/prove -PPassEnv --formatter TAP::Formatter::Camelcade --merge --recurse --jobs 1 $TEST

@hurricup
Copy link
Collaborator

It's passed with environment, check IDE's log. Probably this is regression from recent change for docker lagging. #2040

@hurricup
Copy link
Collaborator

This subsystem lacks of tests atm.

@hurricup hurricup added this to the 2019.1.3 milestone May 25, 2019
hurricup added a commit that referenced this issue May 25, 2019
When testing, process output is wrapped with test formatter and marking text is different

Fixes #2052

(cherry picked from commit 1426bf1)
@floreal
Copy link
Author

floreal commented May 27, 2019

Hello, just tried with version 2019.1.3, and I confirm that the issue is solved. Thank you !

@hurricup
Copy link
Collaborator

Thanks for reporting!

@avanp
Copy link

avanp commented Jul 10, 2020

I have the same problem here, the debugger won't attach with the very same message on IJ Ultimate 2020.1.3.
Verified that the interpreter is started with proper -d option and also checked the log for strange oddities. Also tried to restore IDE's configuration and even reinstalling.

Does not happens each time and often, launching a debugging session on other projects (java, for examples) solves the issue for a moment.

Any idea that can help?
Thank you!

@hurricup
Copy link
Collaborator

Please start another issue. This one been fixed. you probably got something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants