Comments (5)
I don't know how the system works right now, but I imagine you could have multiple running programs all communicating with the UI so that the UI can show a selection of different running programs.
A completely different approach would be that running a traced program both immediately starts a server on a random port and opens the webbrowser in that port.
Either way, document the best available workaround in the docs for now while you come up with a solution. As I said, this stumped me for a bit when I tried the demo.
from cyberbrain.
This is definitely something I need to improve. Right now the server listens on a hard-coded port, and UI talks to that port. If you have a better idea for how to make it work better, let me know. The only solution I can think of right now is to dump the mapping (port -> program being debugged) to a file, but I don't really like this approach since it brings in an extra outer dependency which is the file system.
from cyberbrain.
Actually, I think I can add a new API endpoint for discovering the currently running program. It should not be too hard. It's not that easy but I will think about it.
from cyberbrain.
OK will do π
from cyberbrain.
I closed this issue cause it's more related to documentation. Will have separate issue(s) for optimizing the use case.
from cyberbrain.
Related Issues (20)
- Migrate to GitHub Actions HOT 1
- Can't connect to RPC server HOT 2
- More accurate function definition lineno HOT 2
- Move `tracer.events` assertions to golden files HOT 3
- Support Python 3.10 HOT 4
- Will "PEP 659 adaptive interpreter" affect the functioning of Cyberbrain?
- can not install cyberbrain library HOT 1
- Upgrade Nodejs version to 14.16.0
- Support Visual Studio Code Web
- Add tests to ensure Cyberbrain has consistent behaviors across different Python versions
- Make loops work in Python 3.10 HOT 5
- Add typo check to CI HOT 7
- Can we freeze linenos and header position? HOT 6
- Error in console when hovering over Deletion events HOT 1
- Fails to treat variables of exception types, when they're not used in error handling
- Refactor `JumpDetector`
- Should only create gold data files if cyberbrain ran successfully HOT 3
- pdir2 0.3.6 cyberbrain 0.2.3 dependency (typing-extensions) conflicts γδΎθ΅ι‘Ήε²ηͺγ
- Can't connect to RPC server HOT 1
- can't Support python3.11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cyberbrain.