Code Monkey home page Code Monkey logo

Comments (3)

jtpio avatar jtpio commented on June 11, 2024

What happens when the execution is stopped and then we stop the debugger? (sending the disconnect message)

From the previous tests I think the request_execute goes through, so on page reload the kernel will have executed the cell (except that the debugger will be stopped).

from debugger.

JohanMabille avatar JohanMabille commented on June 11, 2024

The decision taken during developers meetings is to fully restore the state of a debugger session when the user switches back to it (either because the user switches back to a notebook with a running debugger or upon page reload).

This implies that the backend must store the list of breakpoints and a list of threads that are stopped.
This data can be retrieved with a debugInfo request.

The forntend must be able to map the temporary filenames created in the backend for setting the breakpoints with the cells of the notebooks where the breakpoints should appear.

The current method for creating a file in the backend) is to hash the content of the cell (this gives the name of the file) and then add a prefix and the ".py" suffix. Therefore, even if the frontend can work with the hash only, it must be available to retrieve this hash in a filename when receiving a debugInfo reply.

The easiest way to do it is that the backend also sends the prefix and the suffix that are used to build the filenames. The frontend does not need to store them, they are used when ahndling the debugInfo reply only.

from debugger.

JohanMabille avatar JohanMabille commented on June 11, 2024

This has been implemented in #153 and #165

from debugger.

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.