question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feat]: launch.json for debugging appium and its unit test from source

See original GitHub issue

I am trying to understand what’s going on in the Appium source code. And it’s really tough without debugging tool.

Maybe we can add one more configuration to launch.json for both debugging appium and its test

  • So far I got one for debug appium.
{
      "type": "node",
      "request": "launch",
      "name": "launch appium",
      "skipFiles": ["<node_internals>/**"],
      "cwd": "${workspaceFolder}",
      "program": "${workspaceFolder}/packages/appium/index.js",
      "internalConsoleOptions": "openOnSessionStart",
    },

this one is working

  • For the unit test, I tried this config
{
      "type": "node",
      "request": "launch",
      "name": "Mocha Tests",
      "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
      "args": [
        "--no-timeouts",
        "--require",
        "ts-node/register",
        "${workspaceFolder}/packages/appium/test/unit/extension/*.spec.js"
      ],
    }

It doesn’t work yet.

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
boneskullcommented, Dec 8, 2022

I’m using VSCode, but I only use its debugger on E2E tests, and I don’t think I’ve had occasion to do that yet, so I overlooked it. For unit tests I use Wallaby

0reactions
mykola-mokhnachcommented, Dec 8, 2022

yes that vscode config is out-of-date. didn’t think anyone was using it! it should no longer require @babel/register

could you please update this config according to the recent project state when you have time? which IDE do you use for debugging btw?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running Appium from Source
An Appium setup involves the Appium server, which sends messages back and forth between your test code and devices/emulators, and a test script,...
Read more >
appium - Bountysource
Any project using the official UI would be able to test with appium. ... add one more configuration to launch.json for both debugging...
Read more >
Using Visual Studio Code to debug Jest based unit tests
Step 2 Configuring jest test debugging single run. Let's replace the default config file created by VS Code and place the following one:...
Read more >
Web Test Tools - SoftwareQATest.com
GoReplay - Open source performance testing tool for traffic ... Fiddler add-on to combine performance testing and debugging in one solution.
Read more >
100+ Best Software Testing Tools Reviewed (Research Done ...
Check out Tricentis' review of the best 100+ software testing tools ... open source technologies like Selenium, Appium and JS Unit Testing.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found