From d211133074b5c737b4e619f5ad2f73a513fdfdbc Mon Sep 17 00:00:00 2001 From: Julia Borkowska Date: Wed, 18 Dec 2024 18:01:58 +0100 Subject: [PATCH] Fix debugging instruction --- docs/debugging-patrol-tests.mdx | 15 +++++++++++---- docs/documentation/debugging-patrol-tests.mdx | 15 +++++++++++---- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/docs/debugging-patrol-tests.mdx b/docs/debugging-patrol-tests.mdx index 8cd321cee..5d2337826 100644 --- a/docs/debugging-patrol-tests.mdx +++ b/docs/debugging-patrol-tests.mdx @@ -20,10 +20,17 @@ 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=/`. + + + 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. + 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. diff --git a/docs/documentation/debugging-patrol-tests.mdx b/docs/documentation/debugging-patrol-tests.mdx index 8cd321cee..5d2337826 100644 --- a/docs/documentation/debugging-patrol-tests.mdx +++ b/docs/documentation/debugging-patrol-tests.mdx @@ -20,10 +20,17 @@ 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=/`. + + + 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. + 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.