Skip to content

Support step filter when stepping#155

Merged
testforstephen merged 7 commits intomasterfrom
jinbo_stepfilter
Dec 6, 2017
Merged

Support step filter when stepping#155
testforstephen merged 7 commits intomasterfrom
jinbo_stepfilter

Conversation

@testforstephen
Copy link
Copy Markdown
Contributor

Signed-off-by: Jinbo Wang jinbwan@microsoft.com

Add debugFilters options in launch.json to allow user to customize the filters to debug "Just My Code".

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
@testforstephen
Copy link
Copy Markdown
Contributor Author

Peer PR on server side: microsoft/java-debug#106

stepfilter

Comment thread README.md Outdated
- `projectName` - The preferred project in which the debugger searches for classes. There could be duplicated class names in different projects. This setting also works when the debugger looks for the specified main class when launching a program.
- `cwd` - The working directory of the program.
- `env` - The extra environment variables for the program.
- `debugFilters` - Customize the filters to debug "Just My Code".
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should avoid the "Just My Code". The "Just My Code" is .net term and has different behavior from here. We should avoid the confusion.

Comment thread README.md Outdated
- `cwd` - The working directory of the program.
- `env` - The extra environment variables for the program.
- `debugFilters` - Customize the filters to debug "Just My Code".
- `stepFilters` - Skip these classes when stepping. Each filter could be fully qualified class name or pattern. Example: [\"java.lang.ClassLoader\", \"java.*\"].
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be more detail information about the pattern that can be applied here? Regex?

Comment thread README.md
- `env` - The extra environment variables for the program.
- `debugFilters` - Customize the filters to debug "Just My Code".
- `stepFilters` - Skip these classes when stepping. Each filter could be fully qualified class name or pattern. Example: [\"java.lang.ClassLoader\", \"java.*\"].
- `skipSynthetics` - Skip synthetic methods when stepping.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is synthetic methods?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
yaohaizh
yaohaizh previously approved these changes Nov 22, 2017
andxu
andxu previously approved these changes Dec 1, 2017
Comment thread README.md Outdated
- `internalConsole` - VS Code debug console (input stream not supported).
- `integratedTerminal` - VS Code integrated terminal.
- `externalTerminal` - External terminal that can be configured in user settings.
- `stepFilters` - Customize the filters to skip the specified methods and classes when stepping.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indention

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Skip specified classes or methods when stepping."

Comment thread README.md Outdated
- `integratedTerminal` - VS Code integrated terminal.
- `externalTerminal` - External terminal that can be configured in user settings.
- `stepFilters` - Customize the filters to skip the specified methods and classes when stepping.
- `classNameFilters` - Skip these classes when stepping. Each filter could be fully qualified class name or regular expression that begins with '\*' or ends with '\*'. Example: [\"java.lang.ClassLoader\", \"java.*\"].
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skip the specified classes when stepping. Class names should be fully qualified. Wildcard is supported.

@testforstephen testforstephen merged commit 34f7376 into master Dec 6, 2017
@testforstephen testforstephen deleted the jinbo_stepfilter branch December 6, 2017 10:40
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.

4 participants