GithubHelp home page GithubHelp logo

launch.json problems about vscode-perl-debug HOT 4 CLOSED

raix avatar raix commented on August 26, 2024 1
launch.json problems

from vscode-perl-debug.

Comments (4)

sorinmustaca avatar sorinmustaca commented on August 26, 2024 1

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.

raix avatar raix commented on August 26, 2024

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.

sorinmustaca avatar sorinmustaca commented on August 26, 2024

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.

raix avatar raix commented on August 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.