Comments (4)
Ah, I found the solution in the other posts...
{
"version": "0.2.0",
"configurations": [
{
"type": "perl",
"request": "launch",
"exec": "C:\\Perl\\bin\\perl.exe",
"execArgs": [],
"name": "Perl-Debug",
"root": "${workspaceRoot}",
"program": "${relativeFile}",
"inc": [],
"args": [],
"stopOnEntry": true
}
]
}
from vscode-perl-debug.
Hi @sorinmustaca can you give #19 (comment) a go?
I've been preparing a new release the past two weeks improving things just waiting for tests to pass
from vscode-perl-debug.
Here is the solution:
{
"version": "0.2.0",
"configurations": [
{
"type": "perl",
"request": "launch",
"exec": "C:\\Perl\\bin\\perl.exe",
"execArgs": [],
"name": "Perl-Debug",
"root": "${workspaceRoot}/",
"program": "${workspaceRoot}/${relativeFile}",
"inc": [],
"args": [],
"stopOnEntry": true
}
]
}
I can at least start the debugger now :)
However, it is still not working as it should.
The debugger is started in the wrong folder: the folder of the solution, not where the perl source code is.
I have a structure like this:
/
- /f1
- /f2
-/src -> this is where my code is: test.pl which includes a utils.pm, in the same folder.
I loaded in VSCode the folder from the root.
When I debug, I see that VSCode executes
perl -d src/test.pl
and test.pl fails to find Utils.pm, despite the fact that i use an use lib "./";
After I change the start folder to src/ then it returns this error:
Error
Error: spawn C:\Perl\bin\perl.exe ENOENT
from vscode-perl-debug.
@sorinmustaca I've released 0.2.1
this should be solved both in creating proper initial settings for windows users and fixed path resolver internally.
Closing this, but let me know if it's still causing issues
from vscode-perl-debug.
Related Issues (20)
- How to do remote debugging directly in VSCode HOT 4
- Multiline string not display correctly HOT 1
- Example launch.json config for sudo/su? HOT 1
- If you have a space in the folder name where your file is located then perl-debug doesn't work. HOT 3
- the same name local variable can not update dispaly new data
- Setup local multi environment test suite
- Non-starter - What am I doing wrong? HOT 2
- Debugger lags when using DBI or DBIx packages. HOT 4
- Perl Debugger hanged - Subroutine DB::postponed redefined HOT 3
- Add 'commandLine' Option to Debug Configuration HOT 5
- Show special variables in VARIABLES panel
- remote debugger is already connected issue HOT 1
- Debug works but only in console HOT 3
- Print statements don't show up until program terminated HOT 1
- Unable to get Terminal Size / Environment variable COLUMNS / LINES not set HOT 3
- Enable remote debugging for Docker by providing a new configuration option: host
- Allow to define directory mapping for remote debugging
- Do not stop the remote server once the client disconnects
- "Unverified breakpoint" when setting breakpoints in different file HOT 1
- Looking for maintainers / new owners
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-perl-debug.