Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing issues with debugger from VS Studio where after a few nested calls to features on other folders the debugger didn't stop on the breakpoint #1437

Merged

Conversation

joelpramos
Copy link
Contributor

Description

This was a painful one for me and I just stumbled upon the solution by change. When your feature files call other feature files the debugger was never great and most of the times didn't stop (especially if they were on other sub folders etc). It has always been painful for UI automation as we reuse a lot of features and functions etc.

The problem was that the path of the breakpoint was on this format: C:\test\feature\folder..\called-feature.feature and the breakpoints are all stored with absolute paths - C:\test\feature\folder\called-feature.feature . Paths.normalize() takes care of that. In addition VS Studio some times passes the path with the driver letter in lower case (e.g. c:\test\feature\folder\called-feature.feature) and so the lookup in the Map also fails.

Case is important because of the BREAKPOINTS.get(). I wondered for a few minutes if we should make it insensitive but that can create problems in Mac/Linux (although why would you have the same file with two different cases in the same folder).

  • Relevant Issues : (compulsory)
  • Relevant PRs : (optional)
  • Type of change :
    • New feature
    • Bug fix for existing feature
    • Code quality improvement
    • Addition or Improvement of tests
    • Addition or Improvement of documentation

…alls to features on other folders the debugger didn't stop on the breakpoint
@joelpramos
Copy link
Contributor Author

fyi @ptrthomas @ivangsa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants