Coder Social home page Coder Social logo

Comments (6)

jrburke avatar jrburke commented on August 30, 2024

for the 0.1 series, doing this should work:

node --debug-brk path/to/volo command

for 0.2:

node --debug-brk `which volo` command

That gets you into the volo code, but not right at the point the volofile executes. Need to figure out a way to make that nice. Maybe have a debugger statement right before the volofile call so that the code will just stop there, then you can step into what happens with the volofile.

from volo.

mstade avatar mstade commented on August 30, 2024

I had to do something like this to get debugging to work:

node --debug-brk "`dirname "\`which volo\`"`/node_modules/volo/bin/volo"

Otherwise, node tries to run the shell script that executes volo. Could that shell script be changed to take care of --debug and --debug-brk?

from volo.

jrburke avatar jrburke commented on August 30, 2024

node seems to manage that transition and handling of the --debug* options. I'm not sure how to get around that. Similar to what you mention, the best I have been able to manage so far is:

node --debug-brk `which volo` command

from volo.

mstade avatar mstade commented on August 30, 2024

That's what I tried at first, but unfortunately it doesn't work on windows. Oh well, it works with the atrocity I pasted above and I have an alias set up for it anyhow :)

from volo.

jrburke avatar jrburke commented on August 30, 2024

Ah, OK. Well at the very least I think we should document what magic invocation should be used for this, depending on the platform. How are you running that command on Windows? cygwin shell, powershell, basic command line? Want to be sure we give the right info when documented.

from volo.

mstade avatar mstade commented on August 30, 2024

I'm running it under git-bash, which I guess uses msysgit. I haven't tried under cygwin, but I'd assume it's the same deal. Basically, the environment is essentially lost. A similar thing happens with volo create actually, when it's trying to run npm install. That I got around by patching volo (here) to use child_process.exec instead (I believe.)

from volo.

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.