Pycharm + Behave + breakpoints
Answered
Hi All,
I have Pycharm and I have testcases based on behave BDD. I am trying to debug code by putting break points in step defination file but pycharm doesnt stop at the breakpoint. Previously I was Lettuce framework there the breakpoint were working as expected. Breakpoint are not working only in step definition files normal python classes breakpoints are working.
My step defination function looks like below:
@step('I execute stage "([^"]*)"')
def step_impl(context, stagename):
Can anyone guide me what issue might be? How can I make this work?
Please sign in to leave a comment.
Hi Skalluraya! Could you please provide a whole code sample for reproducing the bug?
This is marked as answered but it wasn't.
The issue is: "I am trying to debug code by putting break points in step defination file but pycharm doesnt stop at the breakpoint".
No code sample needed but I've added one here:
@given('foo')
def step_impl(context):
print('foo') # I want a breakpoint here