Skip to content

Gsoc 2025 debugger#379

Merged
blueloveTH merged 10 commits intopocketpy:mainfrom
lightovernight:gsoc-2025-debugger
Aug 9, 2025
Merged

Gsoc 2025 debugger#379
blueloveTH merged 10 commits intopocketpy:mainfrom
lightovernight:gsoc-2025-debugger

Conversation

@lightovernight
Copy link
Contributor

No description provided.


inline static py_Ref get_variable(int var_ref) {
assert(var_ref < py_list_len(py_r7()) && var_ref > 0);
return py_list_getitem(py_r7(), var_ref);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't hardcode r7, use a function instead.

const inline static char* prepend_workdir(const char* workdir, const char* path) {
static char full_path[512];
if(!workdir || !path) return path;
snprintf(full_path, sizeof(full_path), "%s\\%s", workdir, path);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why use \\ here? Is this windows specific?

debugger.current_event = event;
debugger.current_filename = py_Frame_sourceloc(debugger.current_frame, &debugger.current_line);
clear_structures();
if(event == TRACE_EVENT_LINE) return;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This event should be used.

@blueloveTH blueloveTH merged commit ec8f8f4 into pocketpy:main Aug 9, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants