Version number:
packages.config<PackageReference> tagsSpecFlow.Tools.MsBuild.Generation NuGet packageSpecFlowSingleFileGenerator custom toolEnable SpecFlowSingleFileGenerator Custom Tool option in Visual Studio extension settings<Major>.<Minor>.<Patch>
When running the code in Debug mode and put a debug point on Feature file, on Step definition file, on Methods being called from stepdefiniton files, Execution is not stopped at any of the debug point and it executed completely.
Specflow Specrun version - 3.0.352
1) Put a debug point on Feature file, step definition, method callled from step definiton.
3 places of a single test case.
2) Run test case in debug mode
Actual Result:
Execution completed without being stopped at debug point
Expected Result:
Execution should be stopped at debug point
@zeeshankhan0330
Can you provide a small project where you can reproduce the issue. I wasn't able to reproduce it. Thanks!
@SabotageAndi Sorry for the delay in response.
Please find link to a project where I am able to replicate it.
Link: https://github.com/zeeshankhan0330/IssueReporting_SpecflowDebugNotWorking
I tried to put debug point at feature file, step definition and a method that sits in 'utility' class which is being called in Step definition file.
But it did not stop at any Debug point.
Let me know if anything else if required from my end.
@zeeshankhan0330 This will be an interesting issue.
Debugging is working in VS2019, but not in VS2017. No idea why, because both have the same binaries.
let me check with vs2019 and confirm.
Will there be a fix for this issue for Visual Studio 2017? Not being able to debug is a pretty critical issue.
We are working on getting it to work again.
It's a really strange issue. We can debug everything, so the test adapter itself, additional processes, the SpecFlow plugin, but not the test assembly.
PDBs are loaded for the test assembly, but the debugger doesn't step into it.
And in VS 2019 everything is working.
I'm having the same issue with Visual Studio 2019 Version 16.6.2 and SpecFlow 3.3.30, SpecRun.SpecFlow 3.3.17. The project is just the example project in the distribution. Setting a breakpoint in the stepdefs or the calculator does not stop anything. Writing to Debug does not produce any output. I added another Test project to the solution with just an MSTest. Breakpoints and Debug writing work with that test.
Ok, that it is not working Visual Studio 2019 is new. I will have a look at it.
@kpughconsult I tried it with our Bookshop example (https://github.com/SpecFlowOSS/SpecFlow-Examples/tree/master/ASP.NET-MVC/BookShop) in Visual Studio 16.6.3 and it worked.
Sorry, I can't reproduce your issue.
@SabotageAndi : Is there a plan to fix this issue for VS2017 any sooner ?
@sudgarre the problem with this issue is, that we have no idea why it is not working.
I think we already invested a work month of time into this without any progress. Debugging is working perfectly fine in VS2019, but simply doesn't work in VS2017.
And in both versions, the same code is executed.