Skip to content

Commit

Permalink
Fix debugging instruction (#2456)
Browse files Browse the repository at this point in the history
* Fix debugging instruction

* Fix new lines
  • Loading branch information
jBorkowska authored Dec 19, 2024
1 parent 15cb486 commit 5bd576c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
18 changes: 14 additions & 4 deletions docs/debugging-patrol-tests.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,20 @@ Here is how you can do it:

2. Run your patrol tests using `develop` command with the same arguments as you would normally do.

3. When the tests will start running, at some point you will see a message with the VM service URI.
Copy the URI from the message.

`The Dart VM service is listening on http://127.0.0.1:63725/57XmBI_pwSA=/`
3. When the tests will start running, at some point you will see a message with a link to Patrol devtools extension.
Copy the last part of the URI from the message.
Eg. for this link:

`Patrol DevTools extension is available at http://127.0.0.1:9104/patrol_ext?uri=http://127.0.0.1:52263/F2-CH29gR1k=/`

copy `http://127.0.0.1:52263/F2-CH29gR1k=/`.

<Warning>
You'll see 2 similar logs. First one looks like this:
`The Dart VM service is listening on http://127.0.0.1:63725/57XmBI_pwSA=/`

Ignore it - this link is incorrect, wait for the one that says about devtools extension.
</Warning>

4. From "Run and Debug" tab in Visual Studio Code, select the configuration you have created in step 1.
You will be prompted to enter the VM service URI. Paste the URI you copied in step 3.
Expand Down
18 changes: 14 additions & 4 deletions docs/documentation/debugging-patrol-tests.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,20 @@ Here is how you can do it:

2. Run your patrol tests using `develop` command with the same arguments as you would normally do.

3. When the tests will start running, at some point you will see a message with the VM service URI.
Copy the URI from the message.

`The Dart VM service is listening on http://127.0.0.1:63725/57XmBI_pwSA=/`
3. When the tests will start running, at some point you will see a message with a link to Patrol devtools extension.
Copy the last part of the URI from the message.
Eg. for this link:

`Patrol DevTools extension is available at http://127.0.0.1:9104/patrol_ext?uri=http://127.0.0.1:52263/F2-CH29gR1k=/`

copy `http://127.0.0.1:52263/F2-CH29gR1k=/`.

<Warning>
You'll see 2 similar logs. First one looks like this:
`The Dart VM service is listening on http://127.0.0.1:63725/57XmBI_pwSA=/`

Ignore it - this link is incorrect, wait for the one that says about devtools extension.
</Warning>

4. From "Run and Debug" tab in Visual Studio Code, select the configuration you have created in step 1.
You will be prompted to enter the VM service URI. Paste the URI you copied in step 3.
Expand Down

0 comments on commit 5bd576c

Please sign in to comment.