Adding a new debug adapter is easy…

Anatolii Bazko
Jul 26, 2019 · 2 min read

In my previous blog post I wrote about How to Add a New Debugger for Eclipse Che. In this article, I am glad to introduce a real debug adaptor, the Pig Latin Debug Adapter, delivered as a VS Code extension.

A Brief Introduction to Apache Pig and Pig Latin

Apache Pig is a project for processing large amounts of data stored in the Hadoop database. It is made up of two parts — a high level programming language called Pig Latin, designed for ease of parallel execution, and an execution runtime based on the Java Virtual Machine.

Pig Latin is a popular language for Hadoop application developers, because it makes tasks like normalization of large amounts of data easy.

What are the benefits of the Pig debugger?

Currently Apache Pig has several operators to debug a pig script. It implies injecting operators into a script and perform step by step execution with result verifying. Obviously it isn’t very convenient… It is better to have a real debugger to set breakpoints, evaluate arbitrary statements, checking schema and much more... And it is here!

How to try it out…

Create a workspace from thedevfileusing chectl, or start a workspace on to test the debugger.

apiVersion: 1.0.0
name: apache-pig
name: apache-pig-sample
type: git
location: ""
alias: apache-pig-plugin
type: chePlugin
id: eclipse/che-theia/next
type: cheEditor

When your workspace is started click Add Configurations in the Debug menu and add debug configuration for Pig Debug in the launch.json file:

// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
"version": "0.2.0",
"configurations": [
"type": "pig-debug",
"request": "launch",
"name": "Debugging a pig file",
"stopOnEntry": true,
"program": "${file}"

Open test.pig file in the editor and click F5 to start a debug session:

Enjoy debugging Pig Latin scripts! :)

Get Involved!

Quick Start with Eclipse Che.

Join the community:

  • Support: You can ask questions, report bugs, and request features using GitHub issues.
  • Public Chat: Join the public eclipse-che Mattermost channel to discuss with community and contributors.
  • Weekly Meetings: Join us in our Che community meeting every second monday.
  • Mailing list:

Eclipse Che Blog

News and articles for Eclipse Che - next-generation Eclipse…

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store