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

Added check on startup to prevent trying to load directories #762

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

slicedpan
Copy link

As per title. For example, having a folder in your project named 'grunt' prevents you from being able to debug grunt tasks. The current code just checks to see if the path exists using fs.existsSync, however this is true in the case of a directory, but then the debugger will crap out because it can't load it. I've added an extra check to make sure that the file is also not a directory.

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.

None yet

1 participant