Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Remove debug file paths and files #1097

Closed
wants to merge 3 commits into from
Closed

Remove debug file paths and files #1097

wants to merge 3 commits into from

Conversation

jwli229
Copy link
Contributor

@jwli229 jwli229 commented Oct 20, 2017

Remove hardcoded default file paths to debugger logs
Remove empty debugger log files

debugOutFilePath = "./src/debugger/.sessionlogs/engine2adapter.txt",
}: PrepackOptions): DebuggerOptions {
export function getDebuggerOptions({ debugInFilePath, debugOutFilePath }: PrepackOptions): DebuggerOptions {
// if the debugger is started, the in and out files need to be specified
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand this comment in connection with the invariant below which seems to enforce that they do already have to be specified.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This comment just explains why this invariant is here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Style-wise prefer breaking && checks into multiple invariants (clearer to see which one failed when debugging) and putting comments as invariant messages (2nd arg) if necessary. In this case the comment seems redundant with the invariant.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated invariants and removed comment.

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@JWZ2018 is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@hermanventer hermanventer deleted the remove-debug-logs branch October 27, 2017 17:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants