vscode-perl-debug
vscode-perl-debug copied to clipboard
Error Displayed : visual studio code could not connect to debugger
I am developing in Perl and have successfully used the Perl Debug in Visual Studio Code (1.18.1) on Windows 10 in the 32 bit version using a version of Perl 5.22.2. When using the Perl debug 0.2.5 I had no problems with the debug process, displaying syntax errors and allowing code walk through. However I have just upgraded to Perl Debug to 0.4.1 and a strange issue arises.
If the Perl code has no syntax errors then the process will run successfully and as instructed stop on the first line of code to execute. However, if there are any syntax errors in the code then the debug window will display the start information as expected Platform : win32 Launch --- followed by the perl command in quotes Perl --- followed by the command to process.
and Visual Studio Code will display an error message at the top of the screen stating: ERROR : visual studio code could not connect to debugger
Running the same Perl command in a Windows Dos command window shows the syntax error as expected, which would normally be displayed in the debug output window of Visual Studio Code.
On removing Perl Debug 0.4.1 and going back to a backup copy of Perl Debug 0.2.5, the process works as expected. The Debug window displays the same first 3 lines of information, followed by the DB loading information and then the error message that there is a syntax in the expected line.
Is there anything that I need to change to get 0.4.1 to work or should it just work exactly like 0.2.5, or are there any other pre-requisites that I may be missing.
I have tried upgrading to VS Code 1.20 in 32 bit and in 64 bit and still get the same error, hence the regression to VS Code 1.18 and Perl Debug 0.2.5 as that seems stable for Perl 5.22.2 development.
Thank you Mark
Thanks @shuterml for reporting - I'm currently trying to fix the windows test suite, I'm suspecting it might be related. (for now it seems to be a windows only issue)
Its a similar issue Platform: win32 Launch "perl -d E:\tarakesh\platform\trunk\sample-mojo\script\myapp " in "E:\tarakesh\platform\trunk\sample-mojo/" C:/Perl64/bin/perl.exe -d E:\tarakesh\platform\trunk\sample-mojo\script\myapp daemon Loading DB routines from perl5db.pl version 1.49_05 Editor support available. Enter h or 'h h' for help, or 'perldoc perldebug' for more help. main::(E:\tarakesh\platform\trunk\sample-mojo\script\myapp:13): 13: eval 'use Mojolicious::Commands';
onException: Use of uninitialized value in concatenation (.) or string--->Trace error...This socket has been ended by the other party
I can confirm 0.2.5 works on Windows, but 0.4.4 doesn't. Will have to stick to Eclipse+EPIC for now.
@tarakeshp's issue is a duplicate of https://github.com/raix/vscode-perl-debug/issues/52 I think.