After you've done initial investigation, AI can help debug. Give it context:
"This function should return filtered users but returns an empty array. Input: [full input]. Expected output: [expected]. Actual output: []. I've verified the input is correct. Here's the function: [code]"
Specific context gets specific fixes. "It doesn't work" gets generic suggestions.