Camelcade / Devel-Camelcadedb

Perl module for debugging with Perl5 plugin for IntelliJ
Other
23 stars 9 forks source link

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

Open BernieSnoek opened 3 years ago

BernieSnoek commented 3 years ago

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 commented 3 years ago
  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 commented 3 years ago
  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 commented 3 years ago

Hope this is more useful

BernieSnoek commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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.