Git Product home page Git Product logo

misc's People

Contributors

delameter avatar kt97679 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

misc's Issues

`bdb` subshell issues

Hi.
Ran into interesting behaviour of your shell debugger.
Test script is:

#!/bin/bash
cd "$(dirname "$(readlink -f "$0")")" || exit 127
echo Testing
echo Testing
echo 123

Line 2 is a common way of loading resources relative to script (at least Im using it that way:)

The issue is: when you are setting/deleting breakpoints while running subshells, your changes to breakpoints are local and will be lost after returning to the original script, at least that's what I guess.
Example:

$ bdb test.sh    
bdb> trace
bdb> ba true
bdb> +(test.sh:2): cd "$(dirname "$(readlink -f "$0")")"
bdb> +(test.sh:2): dirname "$(readlink -f "$0")"
bdb> bl
     1  true
bdb> bd 1
# after ^ this there should be no breakpoints
bdb> +(test.sh:2): readlink -f "$0"
+(test.sh:3): echo Testing
# however it persists:
bdb> Testing
+(test.sh:4): echo Testing
bdb> Testing
+(test.sh:5): echo 123
bdb> bl 1
     1  true
bdb> 123

Not sure if thats an issue though.

PS Спасибо, в любом случае скрипт полезный, и с год назад мне бы он ооочень пригодился)

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.