Giter Site home page Giter Site logo

Comments (2)

aarzilli avatar aarzilli commented on August 22, 2024 2

The default breakpoints for unrecovered panics and fatal errors aren't special they can be disabled (with toggle/AmendBreakpoint) or removed (clear/RemoveBreakpoint) like any other breakpoint.

It seems a pretty niche feature request, to me, for someone to want to debug a program but also be completely uninterested in actually investigating unrecovered panics (and that these happen often enough that it is inconvenient).

DAP already has an option (noDebug) to launch the program disabling the debugger.

The fact that JetBrains has a feature request for this but they haven't implemented it is further evidence that this feature is requested only rarely.

Furthermore we are probably not going to add an option to disable the creation of these breakpoints on startups even on headless mode.

Because of the above reasons, I don't think we should do this.

from delve.

TomK avatar TomK commented on August 22, 2024 1

@aarzilli
Summary:
In headless mode, with no active connections, delve produces no output whatsoever that it has paused on a panic breakpoint. This has caused a headache for our development environment.

Proposed change:
If delve server is running headless and has no active connections, please do NOT pause execution on the panic.

Details:
We run our software suite in tilt to closely represent a production environment, with the addition of compiling the binaries with symbols and attaching a delve headless server onto the process.

Developers (mainly running Jetbrains Goland), can debug their tasks by connecting to delve using the UI.

If they hit a panic and are not currently connected to the delve server (because they are not debugging, this is an unexpected panic), delve hits the startpanic breakpoint, stopping the process from even logging anything. Leaving the dev with no idea what's going on, and having to manually kill the container. Often brushing it off as a dev environment problem.

The only way to get the output is to attempt to connect to delve, which immediately skips the breakpoint, logs the panic, and restarts the container anyway.

I appreciate there may be some way to get Jetbrains to actually stop (looking for stopOnEntry equivalent for jetbrains, no luck so far), but we still wouldn't be aware that it had actually paused execution.

EDIT: related #3469, #3632 seems to be pretty close to what we're looking for

from delve.

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.