CQ-editor icon indicating copy to clipboard operation
CQ-editor copied to clipboard

Debugger ModuleNotFoundError despite working for run

Open f0lie opened this issue 3 years ago • 1 comments

I am trying to run the debugger for my code. The editor works for the normal "run" mode but when I turn on the debugger, it can't find local files.

import cadquery as cq
from top_plate import create_plate

show_object(create_plate())

top_plate.py

import cadquery as cq
from settings import keyboard_cols, keyboard_rows, keyboard_length, keyboard_width, unit, switch, top_plate_thickness

def create_plate():
    # Create top plate
    return (cq.Workplane("XY").box(
        keyboard_length, keyboard_width, top_plate_thickness)
        # Fillet the base corners for less warping
        .edges("|Z").fillet(4))

Here is the function I am trying to run. The setting to add the working dictionary to the path has been set. I have tried running print(sys.path) and it looks like when I use run, it behaves as expected. But when the debugger runs, the local dictionary is missing from the path.

f0lie avatar Feb 23 '22 19:02 f0lie

always include the copy paste error message is my suggestion. and versions of used software, operating system etc.

i even have begun forgetting this myself lately due to being too tired i think (reminder for myself also)

qkum avatar May 07 '22 13:05 qkum