DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations

Limitations of today’s Debuggers

Domenik Pavletic user avatar by
Domenik Pavletic
·
May. 23, 12 · Interview
Like (0)
Save
Tweet
Share
3.58K Views

Join the DZone community and get the full member experience.

Join For Free

Recently I found this talk on debugging in 2011. The speaker talks about problems of today's debuggers and how a new architecture, denoted as Time-Travel Debugging, can solve them. I provide an overview of the talk in this article, with my personal opinion on the topic.

The speaker describes at first the context in which debuggers were designed from late 70's till today:

  • Programs are single threaded
  • Execution flow is sequential
  • Bugs are always reproducible
  • Programs run for short periods of time
Then he talks about the requirements on debuggers in 2011 and problems they face today:
  • Multithreading
  • Flow of execution not 100% sequential
  • Reproducing bugs is (very) tough
  • Programs run for weeks/months/years

I agree on the first two arguments, although I would summarize both under multithreading, since multithreaded programs are already less than 100% sequential. The third statement is from my point of view dependent on the actual project (technologies and infrastructure). The final point is not specific for 2011 (today). Back in the days, developers also wrote programs with millions loc. Additionally to the mentioned requirements, I would add the following two:

  • Distribution across multiple machines
  • Development with different languages

The first requirement addresses applications that are distributed across multiple machines. Many debuggers allow remote debugging, but this is not the point here. What I want as a developer is a unified debugging view on my system. I should be able to step into (of course also step out, over etc.) a web-service on machine B from machine A. The tool should handle the the execution flow and update the UI accordingly. The other requirement deals with multi-language systems, developed with multiple languages. Not only with the rise of JVM languages are systems developed with multiple languages. Back in the days, Java EE developers used already multiple languages, such as Java and JSPs (both as a language), to develop their systems. Here, as a developer, I want a unified debugger which abstract from the process barriers and allows me to debug the whole system in the same context.

Vraný et al. describe in their paper an architecture for integrating multiple heterogenous debugger in a common UI. With their system, users can revisit the execution flow and control it. This is a good starting point for tackling the mentioned requirements, but not yet the last word on the subject.

In my next post I will provide an overview of the presented debugger prototype, which provides already the time-travelling feature.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Steel Threads Are a Technique That Will Make You a Better Engineer
  • Tracking Software Architecture Decisions
  • Building a RESTful API With AWS Lambda and Express
  • Fargate vs. Lambda: The Battle of the Future

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: