Skip to content

how to get script real line number? #596

@yundiz

Description

@yundiz

hi,
i want to add debug function into goja ,and i can't find real line number in compile.* and vm.* file,
in the following code, i get the source code line number if current program srcPos=codeLine, add wait the next command to debug code, is that possible?

Snipaste_2024-08-16_13-40-12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions