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

In Webstorm the perl debugger disconnects before running any code #52

Open
BernieSnoek opened this issue Nov 30, 2020 · 7 comments
Open

Comments

@BernieSnoek
Copy link

When I attempt to debug in Webstorm, it terminates without executing the code. In the Console there is the following:-


Disconnected
/usr/bin/perl5.28 -d:Camelcadedb /Users/berniesnoek/Development/McLane/QuickAttachateToTTWin.pl

WARNING: This version of perl is included in macOS for compatibility with legacy software.
In future versions of macOS the perl runtime will not be available by
default, and may require you to install an additional package.

Process finished with exit code 11

Any help would be greatly appreciated. I have used the plugin successfully some years ago and have found it excellent.
Bernie

Webstorm 2020.2
Perl Plugin 2020.4
Camelcade 2019.1
Java 1.8.0_271
Perl 5.28.2
MacOS 11.0.1

Here are the parts of the log file that relate to the debugging session.
2020-12-01 07:11:15,569 [ 113815] WARN - tions.ex.ConfigurableCardPanel - auto-dispose 'Plugins' id=preferences.pluginManager
2020-12-01 07:22:51,304 [ 809550] INFO - idea.execution.PerlCommandLine - Executing: /usr/bin/perl5.28 -d:Camelcadedb /Users/berniesnoek/Development/McLane/QuickAttachateToTTWin.pl
2020-12-01 07:22:51,305 [ 809551] INFO - idea.execution.PerlCommandLine - environment: {PERL5_DEBUG_HOST=0.0.0.0, PERL5_DEBUG_ROLE=server, PERL5_DEBUG_PORT=58861} (+CONSOLE)
2020-12-01 07:22:51,305 [ 809551] INFO - idea.execution.PerlCommandLine - working dir: /Users/berniesnoek/Development/McLane
2020-12-01 07:22:51,312 [ 809558] INFO - idea.execution.PerlCommandLine - host = local; vm = system; pty = true; charset: UTF-8

@hurricup
Copy link
Collaborator

hurricup commented Dec 1, 2020

  1. Is there any output in console?
  2. Can you try to run /usr/bin/perl5.28 -d:Camelcadedb /Users/berniesnoek/Development/McLane/QuickAttachateToTTWin.pl from your terminal and provide an output?
  3. Is there chance to access your project?
  4. Does this happens on some sample script like print 'hi'; ?

@BernieSnoek
Copy link
Author

  1. The Console out put is as follows:-

Disconnected
/usr/bin/perl5.28 -d:Camelcadedb /Users/berniesnoek/Development/McLane/QuickAttachateToTTWin.pl

WARNING: This version of perl is included in macOS for compatibility with legacy software.
In future versions of macOS the perl runtime will not be available by
default, and may require you to install an additional package.

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

  1. Running the command in terminal results in the following output

/usr/bin/perl5.28 -d:Camelcadedb /Users/berniesnoek/Development/McLane/QuickAttachateToTTWin.pl

WARNING: This version of perl is included in macOS for compatibility with legacy software.
In future versions of macOS the perl runtime will not be available by
default, and may require you to install an additional package.

[1] 29629 segmentation fault /usr/bin/perl5.28 -d:Camelcadedb

  1. Accessing the project directly is an option at this point.

  2. The same result happens when I try to debug a "Hello World" program

@BernieSnoek
Copy link
Author

Hope this is more useful

@BernieSnoek BernieSnoek reopened this Dec 1, 2020
@BernieSnoek
Copy link
Author

Dont know if my response to the points you raised made it, here they are again.

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

  1. Running the command in terminal results in the following output

/usr/bin/perl5.28 -d:Camelcadedb /Users/berniesnoek/Development/McLane/QuickAttachateToTTWin.pl

WARNING: This version of perl is included in macOS for compatibility with legacy software.
In future versions of macOS the perl runtime will not be available by
default, and may require you to install an additional package.

[1] 29629 segmentation fault /usr/bin/perl5.28 -d:Camelcadedb

  1. Accessing the project directly is an option at this point.

  2. The same result happens when I try to debug a "Hello World" program

@hurricup
Copy link
Collaborator

hurricup commented Dec 1, 2020

Why have you closed the issue?
Please, try to install perlbrew and use a perl from it, not the system one. Probably there is a problem with your system perl.

@hurricup
Copy link
Collaborator

hurricup commented Dec 1, 2020

Debugger itself has no C extensions and should not cause a segfault. So this is a perl itself, or one of dependencies (some of them using XS)

@BernieSnoek
Copy link
Author

This is the first issue I have reported and I still have training wheels on, learning fast though. Thanks for your support so far, I will follow your suggestion and see what happens.

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

No branches or pull requests

2 participants