Forum Discussion
Select the fabric kernel to debug spark job definition in VSCode
- 1 year ago
Currently, Spark Job Definitions cannot be debugged using the Fabric kernel in VSCode. The Fabric kernel is mainly designed for running notebooks, whereas Spark Job Definitions require execution on the remote Spark Runtime. If you try to debug a Spark Job Definition using the Fabric kernel, it won’t function as expected since it lacks the necessary Spark execution environment.
To properly develop and debug Spark jobs, you need to select the remote Spark Runtime, which provides the required Spark components and dependencies. This ensures that your job runs in an environment similar to the one it will be deployed in, allowing for accurate testing and debugging.
If you were expecting this functionality within the Fabric kernel itself, it would be worth checking Microsoft’s official roadmap or documentation for any future support. Having the ability to debug Spark Job Definitions directly in the Fabric kernel would be a valuable enhancement, as it would streamline development and testing workflows without requiring an external runtime.
Are there any specific issues you’re facing while debugging your Spark Job Definition? Let me know how I can assist further!
Hello Broeks
From the document it should work for spark job definition as well.
try these :
1.Ensure you have the Synapse VS Code extension installed and properly configured.
2. Open your Spark job definition in VS Code.
3. In the VS Code Explorer, look for the “Python Environments” option.
4. Select the “synapse-spark-kernel” from the list of available kernels
referenced docs
https://github.com/microsoft/SynapseVSCode/issues/13
https://learn.microsoft.com/vi-vn/fabric/data-engineering/author-sjd-with-vs-code
Please keep us posted here with the outcome.
if this works please accept the solution.
Thanks