Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull debugsession command does nothing when timeline not loaded #108

Open
tolauwae opened this issue Jun 18, 2023 · 3 comments
Open

Pull debugsession command does nothing when timeline not loaded #108

tolauwae opened this issue Jun 18, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@tolauwae
Copy link
Member

When the debug timeline view is not loaded in VS Code (it is collapsed for instance), the pull debugsession just does nothing. No error or message.

That is because of this if statement:

const item = this.timelineProvider?.getItemFromTimeLineIndex(index ?? - 1);
if (!!item) {
await this.saveRuntimeState(item);

The command should still work even if the view is hidden. Maybe the command can "launch" the view and make it visible or something similar.

@tolauwae tolauwae added the bug Something isn't working label Jun 18, 2023
@chscholl
Copy link
Member

That's pretty bad, we should never depend on the GUI components to keep track of the time. We should have a model time which we update when the GUI changes and here we should just access the current value from our model.

@tolauwae
Copy link
Member Author

@carllocos is it just a case of removing an if? Or is this more deeply embedded in the new software structure?

@carllocos
Copy link
Contributor

@chscholl agree. That should indeed never depend on the GUI. I'm surprised that somehow it is the case. I made the debuggerBridge intentionally an event emitter to remove the dependency from the GUI.

@carllocos is it just a case of removing an if? Or is this more deeply embedded in the new software structure?

I do not remember exactly. I'll have to look into the code. I will fix the issue now worries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Progress
Development

No branches or pull requests

3 participants