question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stepping over fails in debugger with message Unable to open '<string>' FIle not found

See original GitHub issue

Getting this error when debugging this file:

import typing
from dataclasses import dataclass, field


@dataclass
class Thing:
    a: typing.Any
    b: typing.Any
    c: typing.Any = field(init=False, repr=False)

    def __post_init__(self):
        self.c = self.a + self.b


Thing(a=1, b=2)

If I set a breakpoint at the self.c = line and then click ‘step over’, I see

Unable to open '<string>': File not found (file:///Users/malmaud/Dropbox (MIT)/Desktop/fun/<string>).

I guess this is related to https://github.com/Microsoft/vscode-python/issues/3063.

VSCode 1.29.1 Python 3.6.7 with dataclasses package installed via pip install dataclasses Extension 2018.10.1

Screenshot: screen shot 2018-11-21 at 11 45 30 am

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
berkobobcommented, Mar 24, 2019

Me too. Let me know if you need any log files. image

0reactions
luabudcommented, Sep 11, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Stepping over fails in debugger with message Unable to ...
This is fixed. In cases such as dataclass , step-over should work. For step-in/out cases we currently show a temp file with message...
Read more >
Running PHPUnit in debug mode gives 'Unable to open ' ...
It seems as if PHPUnittest, running from the PHPUnit-plugin, could not find the BaseTestRunner.php file and raised an exection.
Read more >
Troubleshoot Breakpoints in the Visual Studio Debugger
"No Symbols have been loaded for this document". Go to the Modules window (Debug > Windows > Modules) and check whether your module...
Read more >
Debugging in Visual Studio Code
One of the great things in Visual Studio Code is debugging support. Set breakpoints, step-in, inspect variables and more.
Read more >
Resolving problems when debugging message flows
Scenario: The message flow debugger does not pause at the next breakpoint ... Explanation: This error could be caused by a timing problem, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found