I'm new to the technical side of improvising, so i apologise.
I was told that the -7b5 goes well with the 2nd mode of the harmonic minor, and the 7b9 goes well with the 5th mode of the harmonic minor. However i have forgotten what these are!
As an example, i have notated
C7b9:
C-Db-E(natural)-F-G-Ab-Bb-C
Let me see if I can answer your question as I understand it. First of all this information is from the preface of Jamie Aebersold's Volume 54 "Maiden Voyage" which is an excellent place to start for those who are new at improvising.
Cm7b5 which can also be called "half diminished" is spelled: C-Eb-Gb-Bb
A "mode" that goes well with this chord is the 7th mode of the major scale beginning 1/2 step above C and which starts on C. It is spelled:
C-Db-
Eb-F-
Gb-Ab-
Bb-C (with the chord tones highlighted).
If one knows all their major scales one simply plays the Db major scale from Ti to Ti instead of from Do to Do. If it is confusing to use the name "Locrian Mode", all one needs to remember is that it is the major scale beginning and ending on Ti rather than Do.
The other chord given is the C7b9 which is spelled: C-E-G-Bb-Db
A scale that works well with this chord is the diminished scale beginning with a half step. A diminished scale simply alternates whole steps and half steps. It is spelled
C-
Db-Eb-
E-F#-
G-A-
Bb-C
A variation of the diminished scale is called the "Diminished Whole Tone" or "Altered" scale. It is the 7th mode of the melodic minor scale. It is spelled
C-
Db-Eb-
E-F#-G#-
Bb-C It works well when there is a #9, #4, #5 as well as a b9. If "7th mode of the melodic minor is frightening or confusing" just take any major scale you already know, lower the 3rd one half step and it gives you the melodic minor (ascending). Then start on Ti of the scale rather than Do. It is that simple. Once practiced it will get in your ear and under your fingers and become another tool to add color and tension to the V7 chords in the music.