Posts

Showing posts from May, 2026

Ways to ask Claude to debug

 1) Asking for verification - do not use a generic prompt. I'm working on a project to upgrade a liferay project from 7.2 to 7.4. Whenever I encounter an error, I would usually form a hypothesis in my mind, and ask Claude to verify if it's true or not. For example, I am having an issue with a library declared in build.gradle not being found in one of the module. The library being used in 7.2 was: compileOnly group : "javax.portlet" , name : "portlet-api" compileOnly group : "javax.servlet" , name : "javax.servlet-api" But in 7.4, Claude recommended me to replace javax with jakarta. compileOnly group : " jakarta.portlet" , name : "portlet-api" compileOnly group : " jakarta.servlet" , name : "jakarta.servlet-api" Upon building, I get an error: > Could not find jakarta.portlet:portlet-api:.        Required by:            project :modules:thebank-cam-module:thebank-cam-services      > Could not fi...