Link to home
Start Free TrialLog in
Avatar of nicedone

asked on

specflow while debugging can not go to the step files


I have an integration test project that hosts many feature files and tests inside, but unfortunately i can not step to the Steps.cs file where all the steps listed somehow, could you advise me why would that happen pls?
Avatar of Mlanda T
Mlanda T
Flag of South Africa image

Try clearing the specflow cache. Close all Visual Studios. And to to the system temp folder (%TEMP%) and delete all folders whose names start with specflow
Avatar of nicedone


I have just done what you suggested,closed VS, cleared the specflow cache(removed the files in %temp% that starts with spec ) and then created a new project even just to add simply 2 numbers to each other but althuogh there are debug points in the step file ,

it hits the debug point inside GIVEN
it never hits the debug point inside WHEN or THEN

i am debugging from the feature file and expect it to get to the when and then to see what is happening but nope i can not achieve this thing
By default, you cannot debug inside of the generated .feature.cs files. You can enable debugging of those files by setting <generator allowDebugGeneratedFiles="true"> setting.
but it is not the inside the feauture file, i am trying to go from gherkin to step file, so debugger is not going inside the step file.
Avatar of nicedone

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
only i was able to provide the answer to the question i asked, i resolved it.